<template>
  <div class="el-table__header-wrapper">
    <table
      cellpadding="0"
      cellspacing="0"
      class="el-table__header"
    >
      <tr>
        <th>标题一</th>
        <th>标题二</th>
        <th>自定义</th>
      </tr>
      <tr v-for="(item, index) in data"
        :key="index"
      >
        <td>{{item.name}}</td>
        <td>{{item.age}}</td>
        <td>
          <slot name="td"
            :row="item"
            :$index="index"
          ></slot>
        </td>
      </tr>
    </table>
  </div>
</template>

<script>

</script>

<script setup>

  const props = defineProps({
    data: Array
  })

</script>